package com.zx.service.impl;

import com.zx.mapper.SmbmsRoleMapper;
import com.zx.pojo.SmbmsBill;
import com.zx.pojo.SmbmsRole;
import com.zx.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RoleServiceImpl implements RoleService {
  @Autowired
  private SmbmsRoleMapper roleMapper;
    @Override
    public List<SmbmsRole> findAllByUsers1() {
        return roleMapper.findAllByUsers1();
    }

  @Override
  public SmbmsRole findUsersById(Long uid) {
    return roleMapper.findUsersById(uid);
  }

  @Override
  public boolean addUsers(SmbmsRole user) {
    return roleMapper.addUsers(user);
  }

  @Override
  public boolean updateUsers(SmbmsRole user) {
    return roleMapper.updateUsers(user);
  }

  @Override
  public boolean delUsers(Long uid) {
    return roleMapper.delUsers(uid);
  }


}
